﻿<h3>
    Fair Game:</h3>
<p>
    The following people are considered fair game. If you are on the list beware the
    bus knows you.
</p>
<table id="PeopleTable">
    <thead>
        <tr>
            <td>
                <h4>
                    Name</h4>
            </td>
            <td>
                <h4>
                    Throw Count</h4>
            </td>
            <td>
                <h4>
                    Hit Count</h4>
            </td>
        </tr>
    </thead>
</table>
<script type="text/javascript">
    $(document).ready(function () {
        // Send an AJAX request
        $.getJSON("api/PeopleService/",
					function (data) {
					    // On success, 'data' contains a table of People.
					    $.each(data, function (key, val) {
					        var str = "<tr><td><h5>" + val.PersonName + "</h5></td><td><h5>" + val.ThrowCount + "</h5></td><td><h5>" + val.HitCount + "</h5></td></tr>";
					        $("#PeopleTable").append(str);
					    });
					});
    });
</script>
